<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>window</title>
</head>
<body>


<div id="app">
   <ul>

       //至少一个参数值，表示当前迭代的元素，当有两个参数，第一个参数表示当前迭代的值，第二个参数表示当前元素的索引
       <li v-for="index,element in arr">
           {{index}}--{{element}}
       </li>
   </ul>


    <ol>
        <li v-for="(user,i) in users">
            {{i+11}}--{{user.id}}--{{user.name}}-{{user.age}}
        </li>
    </ol>
</div>


<script src="../node_modules/vue/dist/vue.js"></script>
<script>
    let app = new Vue({
            el: "#app",
           data:{
                arr:[1,2,39,6,5,33],
               users:[
                   {
                       id:10010,
                       name:"ldh",
                       age:50
                   },
                   {
                       id:10010,
                       name:"ldh",
                       age:50
                   },
                   {
                       id:10010,
                       name:"ldh",
                       age:50
                   }
               ]
           }
        })
    ;
</script>
</body>
</html>